[NTG-context] \par and \startlines

2024-04-26 Thread denis.maier
are there! \stoplines Apparently, \type{\par} has no effect here: \startlines The lines are there!\par% \par has no effect here The lines are there! \stoplines For background, this is what I'm actually trying to do: \xmlprocessbuffer{test}{test}{} \stoptext

[NTG-context] Re: what are the interaction between \showframe and \realpageno in \startuseMPgraphic ?

2024-04-24 Thread Wolfgang Schuster
fullsquare xscaled r yscaled e shifted (r/2, h/2) withcolor darkred; \stopuseMPgraphic \defineoverlay [MonGraphisme_OL] [\useMPgraphic{MonGraphisme_MP}] \setupbackgrounds [footer] [rightmargin] [background={MonGraphisme_OL}] \starttext \dorecurse{10}{\input tufte\page} \stoptext Any clue is warmly

[NTG-context] what are the interaction between \showframe and \realpageno in \startuseMPgraphic ?

2024-04-20 Thread garulfo
darkred; \stopuseMPgraphic \defineoverlay [MonGraphisme_OL] [\useMPgraphic{MonGraphisme_MP}] \setupbackgrounds [footer] [rightmargin] [background={MonGraphisme_OL}] \starttext \dorecurse{10}{\input tufte\page} \stoptext Any clue is warmly welcome

[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
it be done manually ? Thanks for your help. List : Command/ attachment Command/ background Command/ bar Command/ beginblock Command/ button Command/ characterkerning Command/ comment Command/ completecombinedlist Command/ completelistoffloats Command/ completelistofsorts Command/ completeli

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-07 Thread Keith McKay
I've found my original file and the image is as Hraban says below. The code is the original in the post I quoted  and gives a green background with shaded colours in the text. Best Wishes Keith On 07/04/2024 18:42, Henning Hraban Ramm wrote: Am 07.04.24 um 19:05 schrieb Hans Hagen

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-22 Thread Ursula Hermann
r sample makes no use of it. Sorry, but I don’t get it. > \defineenumeration > [theorem] > [ > text=Theorem, > title=yes, > width=fit, > distance=0.2em, > alternative=serried, > ] > \definetextbackground[GrayBackground][ > locatio

[NTG-context] command line arguments

2024-03-19 Thread Hraban Ramm
=footer] \setupheadertexts[\CONTEXT\ imposition test] \showframe \setupbackgrounds [text][text][background=color,backgroundcolor=lightgray] % Where the block of pages is placed on the sheet % (relevant if there is space left over.) \setuplayout [location=middle,marking=on] \startbuffer[Fakepage

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-15 Thread Pablo Rodriguez via ntg-context
orry, but I don’t get it. > \defineenumeration >   [theorem] >   [ >     text=Theorem, >     title=yes, >     width=fit, >     distance=0.2em, >     alternative=serried, >   ] > \definetextbackground[GrayBackground][ >   location=paragraph, >   background=color, >

[NTG-context] Struggling with the distance and right margin text

2024-03-15 Thread Ursula Hermann
=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.5\bodyfontsize, rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, frame=off,] \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\\} \blackrule[color=black, height=0.10ex

[NTG-context] \intertext and highlighting with \alignhere/\breakhere

2024-03-12 Thread Max Chernoff
mula \samplefile{knuth} \stoptext \unprotect \newbox\hightlight_tmp_box \definemathframed[_highlight][ location=mathematics, frame=off, background=color, backgroundcolor=lightred, backgroundoffset=0.25ex, ] \tolerant\def\highlighthere#1\alignhere#2#3\breakhere{% \setbo

[NTG-context] Re: How can I do this?

2024-03-08 Thread Otared Kavian
\starttext. Best regards: Otared % begin textbackground-Ursula.tex \definetextbackground[myBG][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.8\bodyfontsize, rightoffset=.8\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, frame

[NTG-context] How can I do this?

2024-03-06 Thread Ursula Hermann
Dear List, I need a tip how to do this: In the command \definepapersize[Mybook] the height should be not 24 cm, but a little bit longer. My Problem is, as you can see on the PDF, that there are troubles with the Gray Background. The Gray Background should begin with : Mitunter. . I think

[NTG-context] Wiki page : Mixed languages sample (French, Ancient Greek, Arabic, Chinese)

2024-03-01 Thread Jean-Pierre Delange
] [sans] [FreeSans] [rscale=0.7] \definefontfamily[mainface] [serif] [GFS Didot] \setupbodyfont[mainface] \setupindenting[1.5em] \setupindenting[yes] \setupcolors[state=start] \defineframedtext [MyFrame] [before={\blank}, after={\blank}, frame=off, background=MyFrame, %width=\textwidth

[NTG-context] Works now! At Work, and a question to paragraphs in an Theorem

2024-02-27 Thread Ursula Hermann
Dear List, At Work everything works fine now. Many thanks for those, who have written me. I have a question to my paragraphs: \definetextbackground[Paragaph][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.5\bodyfontsize, rightoffset=.5\bodyfontsize

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Henning Hraban Ramm
r][first][style=bold] \setupTABLE[r][each][ topoffset=1em,bottomoffset=0.5em, background=sketchylines, % would be nice if the background wouldn’t start at each column ] \setupTABLE[c][each][frame=off] \bTABLE[] \bTR \bTD{Stadt}\eTD \bTD{Land}\eTD \bTD{Fluss}\eTD \eTR \dorecurse

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Hans Hagen via ntg-context
On 2/21/2024 7:47 PM, Henning Hraban Ramm wrote: Am 21.02.24 um 19:43 schrieb Wolfgang Schuster: … but it would be visible on a colored background. I’m sure you can show me a better way… \startuseMPgraphic{dottedborder}    draw bottomboundary OverlayBox withpen pencircle scaled 2 dashed

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Henning Hraban Ramm
Am 21.02.24 um 19:43 schrieb Wolfgang Schuster: … but it would be visible on a colored background. I’m sure you can show me a better way… \startuseMPgraphic{dottedborder}   draw bottomboundary OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red";   setbounds curr

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Wolfgang Schuster
(OverlayBox is the size of the cell). begin example \startuseMPgraphic{dottedborder}    draw OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red"; \stopuseMPgraphic \defineoverlay[dottedborder][\useMPgraphic{dottedborder}] \starttext \bTABLE[frame=off,

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Henning Hraban Ramm
example \startuseMPgraphic{dottedborder}   draw OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red"; \stopuseMPgraphic \defineoverlay[dottedborder][\useMPgraphic{dottedborder}] \starttext \bTABLE[frame=off,background=dottedborder] Thank you! Since I needed only horizo

[NTG-context] Re: MetaPost lines in tables?

2024-02-19 Thread Wolfgang Schuster
OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red"; \stopuseMPgraphic \defineoverlay[dottedborder][\useMPgraphic{dottedborder}] \starttext \bTABLE[frame=off,background=dottedborder] \bTR \bTD Hello Table! \eTD \eTR \eTABLE \stoptext end example

[NTG-context] Re: Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Emanuel Han via ntg-context
TEXpage[offset=1DK] > > \useMPgraphic{layerset#1} > > \stopTEXpage > > } > > > > if that is the looping you are after. > > > > /Mikael > > > > On Fri, Feb 16, 2024 at 6:54 AM Emanuel Han via ntg-context > > wrote: > > > &g

[NTG-context] Re: Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Mikael Sundqvist
; in base. And then do > > \dorecurse{5}{ > \startTEXpage[offset=1DK] > \useMPgraphic{layerset#1} > \stopTEXpage > } > > if that is the looping you are after. > > /Mikael > > On Fri, Feb 16, 2024 at 6:54 AM Emanuel Han via ntg-context > wrote: > > > > Resp.

[NTG-context] Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Emanuel Han via ntg-context
e same background colour and a page number and the metapost content on each page has the same scaling factor.>> On Feb. 15 2024, at 11:10 pm, Emanuel Han via ntg-context wrote:>> Dear Mikael,>> I actually need to keep the \dorecurse mechanism of the mwe (from line 44 on), becau

[NTG-context] Re: Working with layer sets with Metapost

2024-02-17 Thread Emanuel Han via ntg-context
ikael > On Fri, Feb 16, 2024 at 6:54 AM Emanuel Han via ntg-context > wrote: > > > > Resp. the solution should be such that each generated PDF page has the same > > dimension, the same background colour and a page number and the metapost > > content on each page has t

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Mikael Sundqvist
Emanuel Han via ntg-context wrote: > > Resp. the solution should be such that each generated PDF page has the same > dimension, the same background colour and a page number and the metapost > content on each page has the same scaling factor. > > On Feb. 15 2024, at 11:10 pm, E

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
Resp. the solution should be such that each generated PDF page has the same dimension, the same background colour and a page number and the metapost content on each page has the same scaling factor. On Feb. 15 2024, at 11:10 pm, Emanuel Han via ntg-context wrote: > Dear Mikael, > > I

[NTG-context] Re: \startcolumns and \startcolumnset

2024-02-08 Thread Otared Kavian
ed 1mm rightenlarged 1mm; draw topboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;\stopuseMPgraphic\defineoverlay [verticalrule] [\useMPgraphic{verticalrule3}]\setuppagenumbering[state=stop]\setupexternalfigures[location={local,defalut}]\definecolumnset [quiz] [n=2,background=vertic

[NTG-context] \startcolumns and \startcolumnset

2024-02-08 Thread Jeong Dal via ntg-context
leftenlarged 1mm rightenlarged 1mm;\stopuseMPgraphic\defineoverlay [verticalrule] [\useMPgraphic{verticalrule3}]\setuppagenumbering[state=stop]\setupexternalfigures[location={local,defalut}]\definecolumnset [quiz] [n=2,background=verticalrule]\setupbodyfont[bonum, rm, 11pt]\starttext %\startcolumns[n=2

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Hans Hagen
=paragraph, %% offset=overlay, %% does nothing %% backgroundoffset=overlay, %% does nothing %% depthcorrection=off, %% does nothing %% topoffset=3mm,%% works, but only for positive values background=, frame=on] \starttext \startframedtext

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Marco Patzer
tion=paragraph, >%% offset=overlay, %% does nothing >%% backgroundoffset=overlay, %% does nothing >%% depthcorrection=off, %% does nothing >%% topoffset=3mm,%% works, but only for positive values >background=, >frame=on] >

[NTG-context] Re: Chemnitz, Leipzig, Call for Poster

2024-01-10 Thread Henning Hraban Ramm
card memory” patterns as a background (thanks, Hans!). I tried to sketch the relationship of Lua/TeX/MetaPost in LuaMetaTeX and ConTeXt LMTX around it, with different inputs and PDF/XML output – don’t know yet how to make this easily understandable… ConTeXt is interesting for people

[NTG-context] Re: multipage metapost output from ConTeXt

2024-01-06 Thread Emanuel Han via ntg-context
> >> \definefontsynonym [SerifItalic] [notonaskharabic-Italic] [features=fea] > > >> \definefontsynonym [SerifBold] [notonaskharabic-Bold] [features=fea] > > >> \definefontsynonym [SerifBoldItalic] [notonaskharabic-Bold-Italic] > > >> [features=fea] > > >

[NTG-context] Re: Problem with the paragraph

2023-12-18 Thread Ursula Hermann
[GrayBackground][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.5\bodyfontsize, rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, frame=off,] \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\\} \blackr

[NTG-context] Re: Problem with the paragraph

2023-12-15 Thread Bruce Horrocks
rnative=serried, ] \definetextbackground[GrayBackground][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.5\bodyfontsize, rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, frame=off,] \margintext{\blackrule[color=black, height=0.

[NTG-context] Re: Problem with the paragraph

2023-12-14 Thread Wolfgang Schuster
=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem]   [ text=Theorem, title=yes, width=fit, distance=0.2em, alternative=serried,   ] \definetextbackground[paragraph][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.5\bodyfontsize

[NTG-context] Re: About framedtext

2023-12-13 Thread Henning Hraban Ramm
Am 13.12.23 um 18:55 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 13.12.2023 um 18:19: Am 13.12.23 um 19:03 schrieb Fabrice Couvreur: Hi, Is this a bug or not ? The key to coloring the background of the text seems to no longer work. Thanks Fabrice    \definecolor[ColorA][0.8

[NTG-context] Re: About framedtext

2023-12-13 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 13.12.2023 um 18:19: Am 13.12.23 um 19:03 schrieb Fabrice Couvreur: Hi, Is this a bug or not ? The key to coloring the background of the text seems to no longer work. Thanks Fabrice    \definecolor[ColorA][0.8(white)]    \definecolor[MyColorA][.75(MyColorB,white

[NTG-context] Re: About framedtext

2023-12-13 Thread Henning Hraban Ramm
Am 13.12.23 um 18:19 schrieb Wolfgang Schuster: Fabrice Couvreur schrieb am 13.12.2023 um 19:03: Hi, Is this a bug or not ? The key to coloring the background of the text seems to no longer work. There is a problem with the corner option, you can either hope it gets fixed in the next release

[NTG-context] Re: About framedtext

2023-12-13 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 13.12.2023 um 19:03: Hi, Is this a bug or not ? The key to coloring the background of the text seems to no longer work. There is a problem with the corner option, you can either hope it gets fixed in the next release (corner=round still works) or create your own

[NTG-context] Re: About framedtext

2023-12-13 Thread Henning Hraban Ramm
Am 13.12.23 um 19:03 schrieb Fabrice Couvreur: Hi, Is this a bug or not ? The key to coloring the background of the text seems to no longer work. Thanks Fabrice   \definecolor[ColorA][0.8(white)]   \definecolor[MyColorA][.75(MyColorB,white)] I never saw this syntax in ConTeXt. That doesn’t

[NTG-context] About framedtext

2023-12-13 Thread Fabrice Couvreur
Hi, Is this a bug or not ? The key to coloring the background of the text seems to no longer work. Thanks Fabrice \definecolor[MyColorC][s=0.8784] \definecolor[MyColorD][m=0.27,y=1] \definecolor[ColorA][0.8(white)] \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] \definecolor

[NTG-context] Problem with the paragraph

2023-12-13 Thread Ursula Hermann
, ] \definetextbackground[paragraph][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.5\bodyfontsize, rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, before={\switchtobodyfont[global]}, after={}, frame=off

[NTG-context] framed: rounded corner oddity

2023-12-05 Thread Henning Hraban Ramm
, background=color, backgroundcolor=yellow, framecorner=13, backgroundcorner=07, backgroundoffset=0.5em, ]{Das Runde muss ins Eckige} \blank \framed[ frame=on, corner=round, frameoffset=0.5em, framecolor=black, background=color, backgroundcolor=darkgreen, backgroundoffset=1em

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Ursula Hermann
ext] Re: Colored Paragraph > > Am 05.12.23 um 14:16 schrieb Ursula Hermann: >> The paragraph should have a color in the background. How can I get an >> colored paragraph? > > Did you try \definetextbackground? > > https://wiki.contextgarden.ne

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Henning Hraban Ramm
in the background. How can I get an colored paragraph? Did you try \definetextbackground? https://wiki.contextgarden.net/TextBackground https://wiki.contextgarden.net/Command/definetextbackground Hraban ___ If your

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Ursula Hermann
: > The paragraph should have a color in the background. How can I get an > colored paragraph? Did you try \definetextbackground? https://wiki.contextgarden.net/TextBackground https://wiki.contextgarden.net/Command/definetextbackground

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Ursula Hermann
: Colored Paragraph Am 05.12.23 um 14:16 schrieb Ursula Hermann: > The paragraph should have a color in the background. How can I get an > colored paragraph? Did you try \definetextbackground? https://wiki.contextgarden.net/TextBackground https://wiki.contextgarden.net/Command/definetextback

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Henning Hraban Ramm
Am 05.12.23 um 14:16 schrieb Ursula Hermann: The paragraph should have a color in the background. How can I get an colored paragraph? Did you try \definetextbackground? https://wiki.contextgarden.net/TextBackground https://wiki.contextgarden.net/Command/definetextbackground Hraban

[NTG-context] Colored Paragraph

2023-12-05 Thread Ursula Hermann
Hasselt his consent in 1486. \blank Other cities in the neighbourhood of Hasselt were afraid of the toll money to be paid when crossing this bridge so they prevented the construction for many years. \stopparagraph \stoptext The paragraph should have a color in the background. How can I get an colored

[NTG-context] Re: externalfigure crashed

2023-12-04 Thread Hans Hagen via ntg-context
[background=signature,framecolor=darkred] {\fieldbody[signature][width=3cm,option=hidden]} \stopTEXpage \stoptext after neing processed: mtxrun --script pdf --sign --certificate=sign-001.pem --password=test sign-001 (--library) and: mtxrun --script pdf --validate

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-04 Thread Fabrice L
> >> > >> \startMPinclusions > >> > >> picture p[]; > >> path TheFrame ; > >> TheFrame := fullsquare scaled 5in ; > >> > >> z0 = (0,0); > >> z1 = (60,40); > >> z2 = (40,90); > >> z3 = (10,70); > >> z4 = (30,50); > &g

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
abic-Bold] [features=fea] > > >> \definefontsynonym [SerifBoldItalic] [notonaskharabic-Bold-Italic] > > >> [features=fea] > > >> \stoptypescript > > >> > > >> \starttypescript [notonaskharabic] > > >> \definetypeface [notonaskharabic]

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
gt;> > >> \usecolors[crayola] > >> > >> \startMPinclusions > >> > >> picture p[]; > >> path TheFrame ; > >> TheFrame := fullsquare scaled 5in ; > >> > >> z0 = (0,0); > >> z1 = (60,40); > >> z2 = (40,

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
e := fullsquare scaled 5in ; > >> > >> z0 = (0,0); > >> z1 = (60,40); > >> z2 = (40,90); > >> z3 = (10,70); > >> z4 = (30,50); > >> z5 = (90,70); > >> z6 = (-10,70); > >> > >> path A; A = z0..z1..z2..z3..z4 ;

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
artPoint = point 0 of A; >> pair AEndPoint; AEndPoint = point 4 of A; >> path B; B = z5..z6; >> pair BStartPoint; BStartPoint = point 0 of B; >> pair BEndPoint; BEndPoint = point 1 of B; >> path C; C = AStartPoint..AEndPoint; >> >> p1:=image( >> draw A w

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread fv leung
=image(draw A; label(lmt_outline [ > text = "\JapaneseFont 日本語" > ], AEndPoint);); > > p3:=image( > label(textext("\notonaskharabic \textdir TRT دانگ") scaled 1.2, > BStartPoint); > ); > > p4:=image(draw A; label(lmt_outline [ > text = "\Korea

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
, AEndPoint);); > > p3:=image( > label(textext("\notonaskharabic \textdir TRT دانگ") scaled 1.2, BStartPoint); > ); > > p4:=image(draw A; label(lmt_outline [ > text = "\KoreanFont 한국어" > ], AStartPoint);); > > p5:=image( > label(textext("bāng"), BEndPoint);

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-29 Thread Emanuel Han via ntg-context
); p4:=image(draw A; label(lmt_outline [ text = "\KoreanFont 한국어" ], AStartPoint);); p5:=image( label(textext("bāng"), BEndPoint); draw C withcolor green; ); p6:=image( draw B withcolor blue; ); \stopMPinclusions \starttext \dorecurse{6}{ % Frame \setupMPpage[background=colo

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-27 Thread Fabrice L
e[0] := (0,0); TheBrownianMotion := Coordinate[0] ; variance := 10 ; \stopMPinclusions \dorecurse{600}{ % Frame \setupMPpage[background=color, backgroundcolor=SpringGreen] \startMPpage[pagestate=start] currentime := #1 ; % Just for learning : draw TheFrame withpen pencircle scaled .1in withco

[NTG-context] Markdown to HTML cross-references

2023-11-21 Thread Thangalin
Hi list, I'm looking to implement a consistent syntax for cross-references in KeenWrite <https://keenwrite.com/> and am wondering what you think would make the most sense for translating into ConTeXt commands. First, some background (the first two give an overview, the others are cross-ref

[NTG-context] textbackground spacing offset

2023-11-16 Thread Marco Patzer
nothing %% depthcorrection=off, %% does nothing %% topoffset=3mm,%% works, but only for positive values background=, frame=on] \starttext \startframedtext \framed{Foo} \stopframedtext \starttextbackground \framed{Foo} \stoptextbackground \stoptext How do

[NTG-context] Re: How to encircle text?

2023-11-05 Thread Pablo Rodriguez via ntg-context
xyscaled (OverlayWidth-OverlayLineWidth,OverlayHeight-OverlayLineWidth) withpen pencircle scaled OverlayLineWidth withcolor OverlayColor ; \stopusableMPgraphic \defineoverlay[MetaCirc][\useMPgraphic{MetaCirc}] a\dontleavehmode\framed [background=MetaCirc, bac

[NTG-context] Re: How to encircle text?

2023-11-05 Thread Hans Hagen via ntg-context
[background=BigCirc, % frame=off, width=3cm, height=3cm] {test} but bigcirc isn't meant for that \startusableMPgraphic{MetaCirc} draw fullcircle xyscaled (OverlayWidth-OverlayLineWidth,OverlayHeight-OverlayLineWidth) withpen pencircle scaled OverlayLineWidth

[NTG-context] Re: Modernizing Parametric type design A case study of Nupuram Malayalam typeface

2023-11-04 Thread BPJ
I have created fonts for my "fictional scripts"[1] using MF[2] and "converted" them to TTF by importing the bitmap font into the background layer in Fontforge and tracing it with potrace. It was a long time ago, I used little metaness beyond setting weight through pen/path wi

[NTG-context] Re: Double sided pages leave a thin white line on the right side

2023-10-28 Thread Mia Bikey
but on a specific zoom level. There are now some bottom white lines too on some zoom levels. Okay the issue seems to be happening on all pdf files regardless of whether it was made from context or not. The black background just allows me to notice it. Thank you for checking. On Sat, Oct 28, 2023 at 9

[NTG-context] Re: Double sided pages leave a thin white line on the right side

2023-10-28 Thread Mikael Sundqvist
noticed a thin white line on the right side. > > Here is a Minimal Working Example: > > ConTeXt ver: 2023.09.26 18:19 LMTX > > \setupbackgrounds[page][background=color,backgroundcolor=black] > \setuppagenumbering[alternative=doubles

[NTG-context] Double sided pages leave a thin white line on the right side

2023-10-28 Thread Mia Bikey
Hi, I was using \setuppagenumbering[alternative=doublesided] to get double sided pages. After doing that I noticed a thin white line on the right side. Here is a Minimal Working Example: ConTeXt ver: 2023.09.26 18:19 LMTX \setupbackgrounds[page][background=color,backgroundcolor=black

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Jeroen
; draw b; setbounds currentpicture to OverlayBox; \stopuseMPgraphic \defineoverlay [CountFrame] [\useMPgraphic{CountFrame}] \defineframedtext [CountFramedText] [frame=off, background=CountFrame, offset=\bodyfontsize, width=\textwidth, % style={\switchtobodyfont[11pt,tt]}] bod

[NTG-context] Framed Text with Chapter Numbers as Counter

2023-09-16 Thread Jeroen
CountFrame}] \defineframedtext [CountFramedText] [frame=off, background=CountFrame, offset=\bodyfontsize, width=\textwidth, % style={\switchtobodyfont[11pt,tt]}] bodyfont=11pt, style={\tt}, ] \def\FrameTitle#1% {\setMPtext{CountFrame} {\hbox spread 1em{\hss\strut#1\hss}}}\setMPtext{

[NTG-context] Verbatim Textbox with Reference NUmbering

2023-09-09 Thread Jeroen
boundingbox p ; setbounds currentpicture to unitsquare xyscaled(w,h) ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame] \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}} \setMPtext{FunnyFrame

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
, alternative=setups, setups=frontispiz, color=white, background=color, backgroundcolor=Eifel, ] \startsetups[frontispiz] \starttransparent[tlumi]% \externalfigure[\structureuservariable{image}][ width=\measure{MaxWidth}, ]% \stoptransparent% \stopsetups \setuphead[chapter][ page

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
right (just “pageinjections“?) But my “image” consists of a background color (with bleed), a transparent overlay image (with bleed), a tilted image with a shadow on top and a caption (so far) – and pageinjection looks fixed to one image. How can I hook my own placement code in there? We can discuss

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Wolfgang Schuster
, that might be enough. (Documented only in https://wiki.contextgarden.net/Command/setuphead so far. Even the source browser can’t find anything.) https://source.contextgarden.net/tex/context/base/mkxl/page-inj.mklx But my “image” consists of a background color (with bleed), a transparent overlay

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
://wiki.contextgarden.net/Command/setuphead so far. Even the source browser can’t find anything.) But my “image” consists of a background color (with bleed), a transparent overlay image (with bleed), a tilted image with a shadow on top and a caption (so far) – and pageinjection looks fixed to one

[NTG-context] Re: Question about building an array of values with Lua

2023-08-24 Thread Fabrice Couvreur
able{ align = "middle,lohi", bodyfont = "9pt", framecolor = > "black" } > context.startxrow{ background = "color", backgroundcolor = "lightgray" > } > context.startxcell{ nx = 4 } > context("Units digit o

[NTG-context] Re: Question about building an array of values with Lua

2023-08-23 Thread Wolfgang Schuster
is a completed version of what Wolfgang sent: I guess I completely missed the units digit part :) %% begin filling-with-lua.tex \starttext \startluacode context.startxtable{ align = "middle,lohi", bodyfont = "9pt", framecolor = "black" }     context.startxrow{ backgro

[NTG-context] Re: Question about building an array of values with Lua

2023-08-23 Thread Otared Kavian
filling-with-lua.tex \starttext \startluacode context.startxtable{ align = "middle,lohi", bodyfont = "9pt", framecolor = "black" } context.startxrow{ background = "color", backgroundcolor = "lightgray" } context.sta

[NTG-context] Re: Question about building an array of values with Lua

2023-08-23 Thread Wolfgang Schuster
, bodyfont = "9pt", framecolor = "black" }     context.startxrow{ background = "color", backgroundcolor = "lightgray" }     context.startxcell{ nx = 4 }     context("Units digit of")     context.stopxcell()     context.stopxrow()    

[NTG-context] Question about building an array of values with Lua

2023-08-23 Thread Fabrice Couvreur
Hi, I'm trying to fill an array using lua. So far it works but then I don't know if it's possible. Thanks Fabrice \startluacode context.startxtable({"align={middle,lohi},bodyfont=9pt,framecolor=black"}) context.startxrow({"background=color, background

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Fabrice Couvreur
cture cross; > cross := image(draw (0,0)--(1,1); draw (0,1)--(1,0);); > draw cross xscaled \overlaywidth yscaled \overlayheight withpen pencircle > scaled .8pt ; > \stopuniqueMPgraphic > > \defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}] > > \define[1]\cancel{% >

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Alexandre Christe
; \stopuniqueMPgraphic \defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}] \define[1]\cancel{%  \ifmmode  \mframed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%  \else%  \framed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%  \fi% } Maybe something else is available nowadays

[NTG-context] Re: Pass string into text background graphic

2023-08-13 Thread Thangalin
Hi again, you could remove the \localcontrolled around the advance > I thought I tried that, but the counter incremented to 6, instead of 4. Using higher-level primitives seems more like the ConTeXt way. > why twice ? you only have to typeset the text once, right? > > >

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Hans Hagen via ntg-context
On 8/12/2023 7:19 PM, Thangalin wrote: Thanks Hans. The \newinteger approach would always increment the value, regardless of conditionals within the MetaPost code (i.e., it was like legend := "\ConcurrentTextGet" would always invoke the macro just be referencing the MPgraphic and nothing would

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Thangalin
Thanks Hans. The \newinteger approach would always increment the value, regardless of conditionals within the MetaPost code (i.e., it was like legend := "\ConcurrentTextGet" would always invoke the macro just be referencing the MPgraphic and nothing would prevent its execution). This meant that

[NTG-context] Re: Pass string into text background graphic

2023-08-11 Thread Hans Hagen
On 8/11/2023 9:57 PM, Thangalin wrote: Hi list, I'm attempting to make a stylized border around paragraphs that can span pages. The border runs along the side and the top. (Ideally the top border wouldn't repeat, but that's a minor issue.) The issue I'm having is that the title for the text

[NTG-context] Pass string into text background graphic

2023-08-11 Thread Thangalin
Hi list, I'm attempting to make a stylized border around paragraphs that can span pages. The border runs along the side and the top. (Ideally the top border wouldn't repeat, but that's a minor issue.) The issue I'm having is that the title for the text doesn't always appear. Instead, there's a

[NTG-context] Re: upload

2023-08-10 Thread Thangalin
ter the meeting) but here is one: > > \starttext > > \defineoverlay >[test] >[\color > [blue] > {TEST >\inframed > [foregroundcolor=red] > {xxx} > TEST}] > > \fr

[NTG-context] upload

2023-08-09 Thread Hans Hagen
} TEST}] \framed [background=test, foregroundstyle=\switchtobodyfont[small]] {test} \stoptext From now on many commands accept (properly) nested [] inside commands that use [] as fences (like the setup commands) where it makes sense. It is up to the user

[NTG-context] Re: \defineactivecharacter in LMTX + composing characters

2023-08-02 Thread Hamid,Idris
Ṣ {\d{S}} \defineactivecharacter ṣ {\d{s}} \stoptext This should not produce any typeset output but in lmtx it does. Background: The following characters are essential for Arabic transliteration (assuming your email client has the chars): Ṯṯ Ḥḥ Ḫḫ Ḏḏ Šš Ṣṣ Ḍḍ Ṭṭ Ẓẓ Ġġ Āā Īī Ūū ʿ ʾ I'd use

[NTG-context] Re: \defineactivecharacter in LMTX + composing characters

2023-08-01 Thread Hans Hagen
any typeset output but in lmtx it does. Background: The following characters are essential for Arabic transliteration (assuming your email client has the chars): Ṯṯ Ḥḥ Ḫḫ Ḏḏ Šš Ṣṣ Ḍḍ Ṭṭ Ẓẓ Ġġ Āā Īī Ūū ʿ ʾ I'd use a different font but as you want to go cheap ... attached gets you going

[NTG-context] \defineactivecharacter in LMTX + composing characters

2023-08-01 Thread Hamid,Idris
. Background: The following characters are essential for Arabic transliteration (assuming your email client has the chars): Ṯṯ Ḥḥ Ḫḫ Ḏḏ Šš Ṣṣ Ḍḍ Ṭṭ Ẓẓ Ġġ Āā Īī Ūū ʿ ʾ But most really good fonts don't have them, so we have to compose them. Now there are other methods, e.g, 1) \definecharacter

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-30 Thread Henning Hraban Ramm
I use \setuptyping for the general style with a background box. But that conflicts with the setups for special cases like code and result side by side. I guess I’ll also include this in the CGJ setup. ... attached an extension that supports inheritance (via category), still honors 'buffer

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-22 Thread Pablo Rodriguez
n (or doc.pdf#nameddest=destination). But it understands file:///. MuPDF-GL seems also not to handle named destinations, but it understands file:/// too. PDF.js (the default PDF viewer that comes with Firefox) handles named destinations, but doesn‘t seem to understand file:/// as a link. > Background

[NTG-context] Link from a PDF to a reference of an embedded PDF

2023-07-20 Thread Gerion Entrup
n[item:bla], \in[item:blub]. \stoptext ``` Can I somehow access the references of inner.tex from outer.tex? For me, it is not that relevant, that the correct number is set, but the interaction within the outer PDF should work, so clicking on the reference should scroll to the correct content. Backgr

[NTG-context] Re: enhancing MetaPost presentation progress graphics

2023-07-19 Thread Taco Hoekwater
gt; > fill ship xysized (10,5) shifted pos rotatedaround (pos, 15) withcolor red; > \stopuseMPgraphic > > \defineoverlay[Waves][\useMPgraphic{Waves}] > > \setupbackgrounds[state=repeat] > \setupbackgrounds[page][background={Waves}] > > \starttext > > \dorecurse{10}{\recur

[NTG-context] enhancing MetaPost presentation progress graphics

2023-07-19 Thread Henning Hraban Ramm
= (0,10)---(70,10)...(60,0)---(10,0)...cycle; fill ship xysized (10,5) shifted pos rotatedaround (pos, 15) withcolor red; \stopuseMPgraphic \defineoverlay[Waves][\useMPgraphic{Waves}] \setupbackgrounds[state=repeat] \setupbackgrounds[page][background={Waves}] \starttext \dorecurse{10}{\recurs

[NTG-context] Re: text width shadow background

2023-07-09 Thread Keith McKay
Well this is fun.  Getting the right patterns could make some interesting with fonts. Thanks for the tip Hans! Best Wishes Keith McKay % \startMPpage vardef tst (expr x, y, i, n) = definecolor [ name = "MyColor1", r = uniformdeviate(1), g = uniformdeviate(1), b =

[NTG-context] Re: text width shadow background

2023-07-09 Thread Hans Hagen via ntg-context
On 7/9/2023 5:56 PM, Henning Hraban Ramm wrote: Am 09.07.23 um 15:49 schrieb Keith McKay: Hraban (and others), You got me thinking so I added this code to end of your code as a bit of fun. It's code from the luametafun manual to which I added two and a half lines. That’s funny. I replaced

[NTG-context] Re: text width shadow background

2023-07-09 Thread Henning Hraban Ramm
Am 09.07.23 um 15:49 schrieb Keith McKay: Hraban (and others), You got me thinking so I added this code to end of your code as a bit of fun. It's code from the luametafun manual to which I added two and a half lines. That’s funny. I replaced the text by \TeX and published it here:

[NTG-context] Re: Fwd: Re: text width shadow background

2023-07-09 Thread Keith McKay
Hraban (and others), You got me thinking so I added this code to end of your code as a bit of fun. It's code from the luametafun manual to which I added two and a half lines. Best Wishes Keith %%% \startMPcode vardef tst (expr x, y, i, n) = definecolor [ name = "MyColor1", r =

  1   2   3   4   5   6   7   8   9   10   >